﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MediPlatform.Domain.Order
{
    /// <summary>
    /// 问诊评价表
    /// </summary>
    public class ConsultationReview
    {
        /// <summary>
        /// 主键，自增
        /// </summary>
        [Key]
        public long? Id { get; set; }

        /// <summary>
        /// 外键，关联 ConsultationOrder.Id
        /// </summary>
        public long? OrderId { get; set; }

        /// <summary>
        /// 患者用户ID
        /// </summary>
        public long? PatientId { get; set; }

        /// <summary>
        /// 被评价的医生ID
        /// </summary>
        public long? DoctorId { get; set; }

        /// <summary>
        /// 评分（1-5星）
        /// </summary>
        [Range(1, 5)]
        public int? Rating { get; set; }

        /// <summary>
        /// 评价内容
        /// </summary>
        public string? Comment { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreatedAt { get; set; } = DateTime.Now;
    }
}
